package com.hqd.ch03.v51.context.annotation;

import com.hqd.ch03.v51.core.type.MethodMetadata;

/**
 * bean方法
 */
final class BeanMethod extends ConfigurationMethod {

    BeanMethod(MethodMetadata metadata, ConfigurationClass configurationClass) {
        super(metadata, configurationClass);
    }

    @Override
    public boolean equals(Object obj) {
        return ((this == obj) || ((obj instanceof BeanMethod) &&
                this.metadata.equals(((BeanMethod) obj).metadata)));
    }

    @Override
    public int hashCode() {
        return this.metadata.hashCode();
    }

    @Override
    public String toString() {
        return "BeanMethod: " + this.metadata;
    }


}
